Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip trailing whitespace #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

btobolaski
Copy link
Contributor

This builds on #4

When testing out compare_config(), I noticed that the diff was much larger than I would have expected it to be. This is the result of my text editor automatically removing trailing whitespace and the running config having considerable trailing whitespace in it.

I would understand if this isn't a change you would like in the library.

Without these, empty diffs would result in an error instead of empty diffs
Previous if you added something to the replace candidate, it would
appear in the diff output with a - prefix instead of a plus
My text editor removes trailing whitespace automatically and it appears
that the running config has trailing whitespace in it. This resulted
in the diff being greater than the actual changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant